package com.ricervcvcer.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ricervcvcer.goods.entity.TbSpecParam;
import com.ricervcvcer.goods.mapper.TbSpecParamMapper;
import com.ricervcvcer.goods.service.ITbSpecParamService;
import com.ricervcvcer.goods.vo.SpecParamVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 规格参数组下的参数名 服务实现类
 * </p>
 *
 * @author moge
 * @since 2022-01-06
 */
@Service
public class TbSpecParamServiceImpl extends ServiceImpl<TbSpecParamMapper, TbSpecParam> implements ITbSpecParamService {
    @Resource
    TbSpecParamMapper specParamMapper;
    public List<SpecParamVO> selByCid(Long cid) {
        QueryWrapper queryWrappe = new QueryWrapper();
        queryWrappe.eq("cid",cid);
        return this.baseMapper.selectList(queryWrappe);
//        return specParamMapper.selByCid(cid);
    }
}
